package com.kemai.designmode.observer.jdk

import java.util.*

/**

 *@description:被观察者
 * @author: zhaoshanshan
 * @date: 2022/10/4 10:53 上午

 */
class Mango(val name:String): Observable() {

    //芒果到货了
    fun perform() {
        setChanged()
        this.notifyObservers()
    }
}